package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysUserYejiMapper;
import com.ruoyi.system.domain.SysUserYeji;
import com.ruoyi.system.service.ISysUserYejiService;

/**
 * 员工业绩Service业务层处理
 * 
 * @author xyz
 * @date 2025-05-20
 */
@Service
public class SysUserYejiServiceImpl implements ISysUserYejiService 
{
    @Autowired
    private SysUserYejiMapper sysUserYejiMapper;

    /**
     * 查询员工业绩
     * 
     * @param id 员工业绩主键
     * @return 员工业绩
     */
    @Override
    public SysUserYeji selectSysUserYejiById(Long id)
    {
        return sysUserYejiMapper.selectSysUserYejiById(id);
    }

    /**
     * 查询员工业绩列表
     * 
     * @param sysUserYeji 员工业绩
     * @return 员工业绩
     */
    @Override
    public List<SysUserYeji> selectSysUserYejiList(SysUserYeji sysUserYeji)
    {
        return sysUserYejiMapper.selectSysUserYejiList(sysUserYeji);
    }

    /**
     * 新增员工业绩
     * 
     * @param sysUserYeji 员工业绩
     * @return 结果
     */
    @Override
    public int insertSysUserYeji(SysUserYeji sysUserYeji)
    {
        return sysUserYejiMapper.insertSysUserYeji(sysUserYeji);
    }

    /**
     * 修改员工业绩
     * 
     * @param sysUserYeji 员工业绩
     * @return 结果
     */
    @Override
    public int updateSysUserYeji(SysUserYeji sysUserYeji)
    {
        return sysUserYejiMapper.updateSysUserYeji(sysUserYeji);
    }

    /**
     * 批量删除员工业绩
     * 
     * @param ids 需要删除的员工业绩主键
     * @return 结果
     */
    @Override
    public int deleteSysUserYejiByIds(Long[] ids)
    {
        return sysUserYejiMapper.deleteSysUserYejiByIds(ids);
    }

    /**
     * 删除员工业绩信息
     * 
     * @param id 员工业绩主键
     * @return 结果
     */
    @Override
    public int deleteSysUserYejiById(Long id)
    {
        return sysUserYejiMapper.deleteSysUserYejiById(id);
    }

    /**
     * 检查工号是否唯一
     * 
     * @param employeeId 工号
     * @return 结果
     */
    @Override
    public int checkEmployeeIdUnique(Long employeeId)
    {
        return sysUserYejiMapper.checkEmployeeIdUnique(employeeId);
    }
}
